{include "header.tpl"}
<form rel="ajax" method="post" class="form-horizontal" role="form">
    <div class="form-group form-group-sm">
        <label class="col-sm-3 control-label p-r-n">用户姓名：</label>
        <div class="col-sm-5 p-l-n">
            <input name="truename" value="{$info.truename}" class="form-control" placeholder="用户姓名"/>
        </div>
    </div>
    <div class="form-group form-group-sm">
        <label class="col-sm-3 control-label p-r-n">手机号码：</label>
        <div class="col-sm-5 p-l-n">
            <input name="mobile" value="{$info.mobile}" class="form-control" placeholder="手机号码"/>
        </div>
    </div>
    <div class="form-group form-group-sm">
        <label class="col-sm-3 control-label p-r-n">登录账号：</label>
        <div class="col-sm-5 p-l-n">
            <input name="username" value="{$info.username}" class="form-control" placeholder="登录账号"/>
        </div>
    </div>
    <div class="form-group form-group-sm">
        <label class="col-sm-3 control-label p-r-n">登录密码：</label>
        <div class="col-sm-5 p-l-n">
            <input name="password" value="" type="password" autocomplete="off" class="form-control" placeholder="登录密码"/>
        </div>
    </div>
    <div class="form-group form-group-sm" style="margin-bottom: 9px;">
        <label class="col-sm-3 control-label p-r-n">确认密码：</label>
        <div class="col-sm-5 p-l-n">
            <input name="re_password" value="" type="password" autocomplete="off" class="form-control" placeholder="确认密码"/>
        </div>
    </div>
    {if $edit_account_type neq 1}
    <div class="form-group form-group-sm">
        <label class="col-sm-3 control-label p-r-n">账号类型：</label>
        <div class="col-sm-5 p-t-6 p-l-n">
            {foreach from=$account_type key=key item=item}
                <label class="_switchAccount"><input type="radio" name="isadmin" value="{$key}"{if $key eq $info.isadmin} checked="checked"{/if}/> {$item}</label>
            {/foreach}
        </div>
    </div>
    {/if}
    <div class="form-group form-group-sm" id="group_id">
        <label class="col-sm-3 control-label p-r-n">所属用户组：</label>
        <div class="col-sm-5 p-t-6 p-l-n">
            {foreach from=$groupList key=key item=item}
                <label><input type="radio" name="groupid" value="{$item.id}"{if $item.id eq $info.groupid} checked="checked"{/if}/> {$item.title}</label>
            {/foreach}
        </div>
    </div>

    <div class="form-group form-group-sm" id="group_id">
        <label class="col-sm-3 control-label p-r-n">所属连锁店：</label>
        <div class="col-sm-5 p-t-6 p-l-n">
            <select style="width: 160px;" name="shop_id" class="col-sm-5 p-t-6 p-l-n" >
            <option value="">--请选择所属连锁店--</option>
            {foreach $shopList as $k => $v}
                <option value="{$v['id']}" {if $info.shop_id eq $v['id']}selected="selected"{/if}>{$v['name']}</option>
            {/foreach}
            </select>
        </div>
    </div>

    {*<div class="form-group form-group-sm">
        <label class="col-sm-3 control-label p-r-n">状态：</label>
        <div class="col-sm-5 p-t-6 p-l-n">
            {foreach from=$status_type key=key item=item}
                <label><input type="radio" name="status" value="{$key}"{if $key eq $info.status} checked="checked"{/if}/> {$item}</label>
            {/foreach}
        </div>
    </div>*}
    <div class="form-group form-group-sm">
        <label for="" class="col-sm-3 control-label">&nbsp;</label>
        <div class="col-sm-3">
            <input type="hidden" name="id" value="{$info.id}"/>
            <button type="submit" class="btn btn-primary">提交</button>
        </div>
    </div>
</form>
{include "footer.tpl"}